All Questions
9 questions
0votes
0answers
1kviews
Extract series of XML elements' values into an array
This code needs to extract data from in XML file. Specifically it needs to iterate over it, looking for a node called CHARGE_CODES that repeats over and over and ...
2votes
1answer
2kviews
Java CSV to XML converter
I'm relatively new to programming and I was trying to work a project. I would like recommendations of how to annotate or comment my project and any improvement I could make to it, any suggestion is ...
1vote
0answers
2kviews
Escaping invalid XML characters (e.g. for the Java DOM API)
I want to save and load an arbitrary Java String in a Text node in a XML file using the Java DOM API. The ...
1vote
1answer
182views
Building DOM tree from XML, checking/updating player's average score
This is the first time I'm parsing an XML file. So I will be grateful for any suggestions on how my code may be improved. Or if you could suggest another approach to solving this problem. One other ...
5votes
2answers
769views
Populating an XML form with user input
I am attempting to create XML forms using user input to populate certain areas that would appear when loaded into a STIG viewer. Right now everything is working enough for me to create this and have ...
8votes
1answer
15kviews
Converting partial XML (Node List) to a String
I have a need to extract a part of XML tree (everything under root) and convert it to a string. (The result string will be later pasted inside ...
3votes
1answer
2kviews
Validate XML using XSD, a Catalog Resolver, and JAXP DOM for XSLT
Background As this related question describes, there does not appear to be a canonical way to validate XML files against an XSD then subsequently transform them using an XSL template with file paths ...
2votes
2answers
1kviews
DOM parser implemented from scratch
I have implemented a DOM parser. I would like any comments for optimizing, improving, and making the code coherent to best coding practices. ...
7votes
3answers
3kviews
Handling various types of nodes when traversing a DOM tree
How to minimize the following code using java's features ... looking for some workaround with the switch-case statement I've seen several question regarding switch-case design pattern / best ...